﻿<Page x:Class="WpfControlss.ToolBarSample"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="302" d:DesignWidth="632"
	Title="ToolBarSample">
    <Grid>
        <ToolBarTray   Orientation="Horizontal"  Width="500" Height="100" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="50,50,0,0" IsLocked="False" >
            <ToolBar Background="LightCyan" ToolBarTray.IsLocked="False"   >
                <Button Content="_New" />
                <ToggleButton Content="B" />
                <Separator />
                <ComboBox Width="80">
                    <ComboBoxItem Content="FontSize" IsSelected="True" />
                    <ComboBoxItem Content="12" />  
                </ComboBox>
            </ToolBar>
            <ToolBar Background="LightCyan" ToolBarTray.IsLocked="False"   >
                <Button Content="_Edit" />
                <ToggleButton Content="C" />
                <Separator />
                <ComboBox Width="80">
                    <ComboBoxItem Content="FontFamily" IsSelected="True" />
                    <ComboBoxItem Content="12" />  
                </ComboBox>
            </ToolBar>
            <ToolBar Background="LightCyan" ToolBarTray.IsLocked="False"   >
                <Button Content="_Edit" />
                <ToggleButton Content="I" />
                <Separator />
                <ComboBox Width="80">
                    <ComboBoxItem Content="Color" IsSelected="True" />
                    <ComboBoxItem Content="12" />  
                </ComboBox>
            </ToolBar>
        </ToolBarTray>
        <StatusBar Height="33" HorizontalAlignment="Left" Margin="50,193,0,0" Name="statusBar1" VerticalAlignment="Top" Width="500" >
            <TextBlock  Text="就绪"/>
            <Button Content="Back"/>
        </StatusBar>
    </Grid>
</Page>
